extends Node
class_name Main
func _ready():
	randomize()
#	DanMuReciver.start()
	yield(get_tree(),"idle_frame")
#	UserModel.start()
#	HeadLoader.start()
	#$map/headIcon.start(64452)
	#$map/headIcon.start(1)
	var battlePlaceDic=G.battlePlaceDic
	battlePlaceDic[1]=$viewportContainer1/viewport/battlePlace
	battlePlaceDic[2]=$viewportContainer2/viewport/battlePlace
	battlePlaceDic[3]=$viewportContainer3/viewport/battlePlace
	battlePlaceDic[4]=$viewportContainer4/viewport/battlePlace
	battlePlaceDic[5]=$viewportContainer5/viewport/battlePlace
	
	var athena=battlePlaceDic[1].get_node('athena')
	var athenaM=G.createNPCActorM('1')
	athena.start(athenaM)
	

	
	var posGetter=$viewportContainer1/viewport/posGetter
	for i in 30:
		var pos=posGetter.getRandomPlayerPos()
		G.createPlayer(1,pos)

	for i in 30:
		var pos=posGetter.getRandomEnemyPos()
		G.createEnemy(1,1,pos)
		
		
	
